import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import * as gc from 'src/app/global/const';
import { JsonResult } from '../global/model';
import { Observable } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class MillService {

  private url = {
    'selectAllMill':gc.BACKEND_SERVER + '/mill/all',
  }

  constructor(
    private http:HttpClient
  ) { }

  // 获取所有客户工厂
  selectAllMill():Observable<JsonResult>{
    return this.http.get<JsonResult>(this.url.selectAllMill);
  }

}

export class Mill {
  private iid:number;
  private sid:string;
  private backend_port:number;
  private backend_name:string;
  private frontend_name:string;
  private create_time:Date;

  constructor(){}
}
